package com.sgq.vue.service.system;

import com.sgq.vue.entity.system.Department;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sgq.vue.vo.query.DepartmentQueryVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author SGQ
 * @since 2023-10-30
 */
public interface DepartmentService extends IService<Department> {


    /**
     *查询部门列表
     * param departmentQueryVo @return
     */
    List<Department> findDepartmentList(DepartmentQueryVo departmentQueryVo);

    /**
     *查询上级部门列表 @return
     */
    List<Department> findParentDepartment();


    /**
     * 核对当前部门是否存在子部门
     * @param id
     * @return
     */
    Boolean check(Long id);

}
